<?php
$icons = array('available', 'order', 'not-available');

$titles = array('в наличии', 'под заказ', 'нет в наличии');

$regionsRod = [
    1 => 'Москве',
    2 => 'Санкт Петербурге',
    3 => 'Нижнем Новгороде',
    4 => 'Екатеринбурге',
    5 => 'Новосибирске',
    6 => 'Казане',
];

foreach (Yii::app()->params['regions'] as $region) {
    $regionsRod[$region['regionId']] = $region['genitive'];
}
?>
<noindex>
    <span class="green-text-nad-price">Здравствуйте уважаемый Клиент Mobi03</span>
    <h2 class="middle-title h2-nad-price">
        Мы предлагаем широкий спектр услуг на ремонт Вашего <?php echo $data['_parents']['brand']['pageTitle'] . " " . $data['pageTitle']; ?> в <?php echo $regionsRod[Yii::app()->session['userRegion']['id']]; ?>
    </h2>
    <span class="bold-text-price">Зачем тратить время? Обращайтесь к нам. Выбирайте <span>профессионалов!</span></span>

    <br /><br />
    <hr>

</noindex>

<div class="model-info">
    <div class="model-info__photo">
        <div class="model-info__photo__inner">
            <?php if (!Yii::app()->user->isGuest && Yii::app()->user->name['userGroup'] == 'admin' && !empty($data['pageYandexId'])): ?>
                <a class="status-list" href="http://market.yandex.ru/model.xml?modelid=<?php echo $data['pageYandexId']; ?>&int_lnk=p-goods" target="_blank">
                    <span class="status available">
                        <span class="status__inner">
                            <span>&nbsp;</span>                            
                        </span>                            
                    </span>
                </a>
            <?php endif; ?>
            <?php $src = $this->getImageUrl('/image/resize/200x200/uploads/images/model/' . $data['pageImages']); ?>
            <img src="<?php echo $src; ?>" alt="<?php echo 'Ремонт ' . $data['_parents']['brand']['pageTitle'] . " " . $data['pageTitle']; ?>" />
        </div>  <?php // echo $data['pageId'];exit;                                                                                                                                       ?>

        <div class="rating">
            <?php $this->widget('application.modules.review.widgets.Rating', array('params' => array('ratingItem' => 'model'), 'id' => $data['pageId'])); ?>
            <br />
            <div itemtype="http://data-vocabulary.org/Review-aggregate" itemscope="" class="rating__text">
                <meta itemprop="photo" content="<?php echo Yii::app()->request->hostInfo; ?><?php echo $src; ?>">
                <span itemtype="http://data-vocabulary.org/Rating" itemscope="" itemprop="rating">
                    <!--            Оценка 
                                <span itemprop="itemreviewed"><?php echo $data['_parents']['brand']['pageTitle'] . " " . $data['pageTitle']; ?></span>: -->
                    Рейтинг <b>
                        <span itemprop="average"><?php echo $this->setValue($data['pageId']); ?></span>
                    </b> на основе 
                    <span itemprop="votes"><?php echo $this->getValue($data['pageId']); ?></span>				
                    отзывов.
                </span>			
            </div>
        </div>
    </div>
    <div class="model-info__description">
        <div class="battery-wrap">
                <!--<p>Кому что, а Вам скидка <strong>12%</strong> на работу мастера</p>-->
            <p class="battery-descr">Ваша скидка <strong>5%</strong>, можно увеличить её до <strong>15%</strong></p>
            <div class="battery-wrap__inner">
                <div class="battery">
                    <div class="battery__inner">&nbsp;</div>
                </div>
                <a href="#" class="battery-button disabled">&nbsp;</a>
                <em class="battery-still">
                    <span>попробовать еще</span>
                </em>
            </div>
            <div class="social-likes">
                <div title="Поделиться ссылкой во Вконтакте" data-title="Хочешь получить 15% скидку на ремонт <?php echo $data['_parents']['brand']['pageTitle'] . " " . $data['pageTitle']; ?>. Кликай — Моби03" class="vkontakte">Вконтакте</div>
                <div title="Поделиться ссылкой на Фейсбуке" data-title="Хочешь получить 15% скидку на ремонт <?php echo $data['_parents']['brand']['pageTitle'] . " " . $data['pageTitle']; ?>. Кликай — Моби03" class="facebook">Facebook</div>
                <div title="Поделиться ссылкой в Твиттере" data-title="Хочешь получить 15% скидку на ремонт <?php echo $data['_parents']['brand']['pageTitle'] . " " . $data['pageTitle']; ?>. Кликай — Моби03" class="twitter">Twitter</div>                
                <div title="Поделиться ссылкой в Одноклассниках" data-title="Хочешь получить 15% скидку на ремонт <?php echo $data['_parents']['brand']['pageTitle'] . " " . $data['pageTitle']; ?>. Кликай — Моби03" class="odnoklassniki">Одноклассники</div>
                <div title="Поделиться ссылкой в Гугл-плюсе" data-title="Хочешь получить 15% скидку на ремонт <?php echo $data['_parents']['brand']['pageTitle'] . " " . $data['pageTitle']; ?>. Кликай — Моби03" class="plusone">Google+</div>
            </div>
            <p class="like-text strong">
                Чтобы воспользоваться скидкой на ремонт, Вы должны <strong class="price-group strong buyServiceForm cursor-pointer"><a style="text-decoration: none;" href="/online-zakaz">отправить онлайн заявку</a></strong> с этой страницы сайта
            </p>

            <!--            <div class="social-likes">
                            <div class="facebook" title="Поделиться ссылкой на Фейсбуке">Facebook</div>
                            <div class="twitter" title="Поделиться ссылкой в Твиттере">Twitter</div>
                            <div id="vk_like" title="Поделиться ссылкой во Вконтакте">Вконтакте</div>
                            <div class="plusone" title="Поделиться ссылкой в Гугл-плюсе">Google+</div>
                        </div>-->

            <ul class="discount-text" style="display: none;">
                <li>Ваша скидка <strong>5%</strong>, можно увеличить её до <strong>15%</strong></li>
                <li>Скидка <strong>6%</strong>, еще есть шанс её увеличить</li>
                <li>Пока только <strong>7%</strong>, пробуйте еще!</li>
                <li>Скидка <strong>8%</strong>, но это не предел!</li>
                <li>Ваша скидка <strong>9%</strong>, хотите больше – пробуйте еще!</li>
                <li>Скидка <strong>10%</strong>, помните это не предел!</li>
                <li>Скидка в <strong>11%</strong> это хорошо, но еще не предел!</li>
                <li>Ваша скидка <strong>12%</strong>, но это не предел</li>
                <li>Пока только <strong>13%</strong>, пробуйте еще</li>
                <li>Ваша скидка <strong>14%</strong> - Вы почти у цели!</li>
                <li>Ваша скидка <strong>15%</strong> - это победа!</li>
            </ul>
        </div> 
    </div> 
    <script>

        localStorage.setItem("sharesCount", 0);
        var allLikesCount = 0;

        $('.social-likes').bind('popup_closed.social-likes', function (event, service) {
            $(event.currentTarget).socialLikes({forceUpdate: true});
        });
        $('.social-likes').on('popup_opened.social-likes', function (event, service, win) {
//            console.log(event, win, service);
//            localStorage.setItem("sharesCount", 0);
            $(event.currentTarget).socialLikes({forceUpdate: true});
        });
        $('.social-likes').on('ready.social-likes', function (event, number) {
            var oldSharesCount = number;
            if (localStorage.getItem("sharesCount") !== null) {
                oldSharesCount = localStorage.getItem("sharesCount");
            }
            if (parseInt(number) > parseInt(oldSharesCount) && localStorage.getItem("sharesCount") > 0)
                like();
            localStorage.setItem("sharesCount", number);
        });
        $('#online-request-2').on('click', function () {
            $('html, body').animate({
                scrollTop: $("#OnlineOrderForm_userName").offset().top - 100
            }, 1000);
            $("#OnlineOrderForm_userName").focus();
            return false;
        });
    </script>

</div>  
<ul class="icon-info">
    <li>
        <div class="icon-info__icon">
            <img alt="icon" src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/bg/checkbox__box-icon.png">
        </div>    
        <div class="icon-info__description">
            <p>- в наличии</p>
        </div>
    </li>
    <li>
        <div class="icon-info__icon">
            <img alt="icon" src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/bg/order-icon.png">
        </div>    
        <div class="icon-info__description">
            <p>- под заказ</p>
        </div>
    </li>
    <li>
        <div class="icon-info__icon">
            <img alt="icon" src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/bg/unsolved-icon.png">
        </div>    
        <div class="icon-info__description">
            <p>- нет в наличии</p>
        </div>
    </li>
</ul>

<?php
$c = 0;
$percent = 9.99;

foreach ($groups as $group => $services): $c++;
    ?>
    <dl class="widget"<?php if ($c > 1) echo ' id="hidden-services"'; ?>>
        <dt class="no-strong">
        <?php if ($c == 1) $this->widget('application.modules.main.widgets.cityPhonesInModelPage'); ?>
        <br />
        <?php
        if ($c == 1) {
            $scs = array(
                'remont-telefonov/apple-iphone/6' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/zte/nubia-z5' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/zte/leo-s1' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/zte/leo-q1' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/sony-ericsson/live-with-walkman-wt19i' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/sony/xperia-zl' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/sony/xperia-u' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/sony/xperia-sp' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/sony/xperia-sola' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/sony/xperia-s' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/sony/xperia-p' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/sony/xperia-miro' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/sony/xperia-l' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/sony/xperia-j' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/sony/xperia-c' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/sony/xperia-acro-s' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/sony/st27i-xperia-go' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/samsung/s5830-galaxy-ace' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/samsung/i9250-google-galaxy-nexus' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/samsung/galaxy-win-gt-i8552' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/samsung/galaxy-star-plus-gt-s7262' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/samsung/galaxy-s4-mini-duos-gt-i9192' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/samsung/galaxy-note-ii-gt-n7100' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/samsung/galaxy-core-gt-i8262' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/samsung/galaxy-ace-ii-i8160' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/philips/xenium-x5500' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/philips/xenium-w8510' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/philips/xenium-w832' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/philips/xenium-w3568' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/philips/w732' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/philips/w536' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/nokia/x2-dual-sim' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/nokia/n9' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/nokia/n8' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/nokia/lumia-820' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/nokia/lumia-525' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/nokia/lumia-520' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/nokia/c7' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/nokia/8800-sirocco' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/nokia/6700-classic' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/nokia/515-dual-sim' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/mts/975' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/mts/972' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/mts/970' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/lg/p970-optimus-black' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/lg/p705-optimus-l7' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/lenovo/ideaphone-s890' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/lenovo/ideaphone-p770' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/lenovo/a850' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/lenovo/a526' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/lenovo/a516' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/huawei/honor-u8860' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/htc/wildfire-s' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/htc/sensation' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/htc/m7' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/htc/incredible-s' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/htc/desire-s' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/htc/desire-816' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/htc/desire' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/highscreen/zera-f' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/highscreen/spark' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/highscreen/omega-prime-xl' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/highscreen/alpha-rage' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/fly/spark-iq4404' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/fly/pronto-iq449' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/fly/iq454-evo-tech-1' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/fly/iq451-vista' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/fly/iq447-era-life-1' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/fly/iq446-magic' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/fly/iq4415-quad-era-style-3' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/fly/iq440-energie' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/fly/iq431-glory' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/fly/iq238-jazz' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/fly/energie-3-iq4403' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/explay/x-tremer' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/explay/hd-quad' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/explay/golf' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/apple-iphone/3gs' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/apple-iphone/3g' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/alcatel/one-touch-star' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/alcatel/one-touch-scribe-hd-d-8008d' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/alcatel/onetouch-idol-ultra-6033' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-telefonov/alcatel/idol-mini-6012d' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/wexler/tab-7i' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/texet/tm-9741' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/texet/tm-7858' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/texet/tm-7055hd' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/texet/tm-7026' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/sony/xperia-z2-tablet' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/sony/xperia-tablet-s' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/samsung/p1000-galaxy-tab' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/samsung/galaxy-tab-3-80-sm-t315' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/samsung/galaxy-tab-2-p3100-70' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/samsung/galaxy-tab-2-10-1' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/samsung/galaxy-note-101-n8000' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/ritmix/rmd-1035' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/pocketbook/surfpad-u7' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/pipo/m9-pro' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/oysters/t84' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/oysters/t10' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/mystery/mid-703g' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/lenovo/yoga-tablet-8' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/lenovo/ideatab-a3000' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/huawei/mediapad-7-lite' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/huawei/mediapad-10-fhd' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/fly/flylife-connect-785' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/digma/idj7n' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/asus/vivotab-smart-me400c' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/asus/transformer-pad-tf300tg' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/asus/transformer-pad-infinity-tf701t' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/asus/transformer-book-t100ta' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/asus/memo-pad-smart-me301t' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/asus/memo-pad-me172v' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/asus/memo-pad-hd-7-me173x' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/asus/memo-pad-fhd-10-me302kl' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/asus/memo-pad-fhd-10-me302c' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/asus/fonepad-me372cg' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/asus/eee-pad-transformer-tf101' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/asus/eee-pad-transformer' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/asus/asus-transformer-pad-tf300' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/apple-ipad/mini' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/apple-ipad/ipad-air' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/apple-ipad/4' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/apple-ipad/3' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/apple-ipad/2' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/apple-ipad/1' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/acer/iconia-tab-b1-711' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/acer/iconia-tab-a701' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/acer/iconia-tab-a511' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/acer/iconia-tab-a510' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/acer/iconia-tab-a501' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/acer/iconia-tab-a3-a11' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/acer/iconia-tab-a200' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),
                'remont-planshetov/acer/iconia-tab-a1-811' => array('received' => 400, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false),);
            $dataM = isset($scs[$data['pageUrl']]) ? $scs[$data['pageUrl']] : array('received' => 350, 'issued' => 300, 'workTime' => '7|22', 'holiday' => false);

            $recived = (int) $dataM['received'] / 5;
            $issued = $dataM['issued'] / 5;

            $today = date('w');
            $currentTime = (int) date('H');
            if ($dataM['holiday'] != $today) {
                //echo $currentTime;
                $workTime = explode('|', $dataM['workTime']);
                $open = $workTime[0];
                $close = $workTime[1];
                if (($open <= $currentTime) && ($currentTime <= $close)) {
                    $range = $close - $open;
                    $totalTodayRecived = $recived / $range;
                    $totalTodayIssued = $issued / $range;
                    $totalCurrRecived = ($currentTime - $open) * $totalTodayRecived;
                    $totalCurrIssued = ($currentTime - $open) * $totalTodayIssued;
                    $t = time() - strtotime('2006-01-01');
                    $idM = $data['pageId'];
                    if ($data['pageUrl'] == 'remont-telefonov/apple-iphone/6') {
                        $idM = 8000;
                    }
                    $totalRecivede = ($t / 60 * 900 / 1000 / $idM) + $totalCurrRecived;
                    $totalIssued = ($t / 60 * 900 / 1000 / $idM) + $totalCurrIssued;
                    echo '<noindex><dl class="widget" id="model-stat">
                    <dt>Статистика по модели ' . $data['_parents']['brand']['pageTitle'] . " " . $data['pageTitle'] . '</dt>
                    <dd>
                    <div class="availability" style="max-width: 986px;">
                        <ul style="text-align: left;" class="currency-icon">
                                <li style="padding-right: 20px;">
                                    <div style="width: 32px;" class="availability__icon">
                                        <img alt="icon" src="/themes/front/assets/images/prinyato.png">
                                    </div>
                                    <p style="color: #636363;">Принято итого: ' . abs(round($totalRecivede, 0, PHP_ROUND_HALF_UP)) . '</p>
                                </li>
                                <li style="margin: 0;padding-right: 20px;">
                                    <div style="width: 32px;" class="availability__icon">
                                        <img alt="icon" src="/themes/front/assets/images/vidano.png">
                                    </div>
                                    <p style="color: #636363;">Выдано итого: ' . abs(round($totalIssued, 0, PHP_ROUND_HALF_UP)) . '</p>
                                </li>
                                <li style="margin: 0;padding-right: 20px;">
                                    <div style="width: 32px;" class="availability__icon">
                                        <img alt="icon" src="/themes/front/assets/images/prinyato.png">
                                    </div>
                                    <p style="color: #636363;">Принято сегодня: ' . round($totalCurrRecived, 0, PHP_ROUND_HALF_UP) . '</p>
                                </li>
                                <li style="margin: 0;">
                                    <div style="width: 32px;" class="availability__icon">
                                        <img alt="icon" src="/themes/front/assets/images/vidano.png">
                                    </div>
                                    <p style="color: #636363;">Выдано сегодня: ' . round($totalCurrIssued, 0, PHP_ROUND_HALF_UP) . '</p>
                                </li>                            
                        </ul>
                    </div>
                    </dd>
             </dl></noindex>';
                }
            }

            if (Controller::$pageData['_parents']['brand']['pageId'] == 357)
                echo '<p class="differ" style="
    color: rgb(5, 162, 85);
    font-size: 22px;text-align: center;
">Цена указана только за услугу без учета стоимости запчастей. <br>
 Позвоните нам для подробностей.</p>
                <br />';
            elseif ((!empty(Controller::$pageData['pageGroup']) && Yii::app()->user->isGuest) || Yii::app()->user->isGuest) {
                echo '<p class="differ" style="
                            color: rgb(5, 162, 85);
                            font-size: 22px;text-align: center;
                        ">Цена указана только за услугу без учета стоимости запчастей. <br>
                         Позвоните нам для подробностей.</p>
                <br />';
            } elseif (Controller::$pageData['_parents']['category']['pageId'] == 3) {
                echo '<p class="differ" style="
                            color: rgb(5, 162, 85);
                            font-size: 22px;text-align: center;
                        ">Цена указана только за услугу без учета стоимости запчастей. <br>
                         Позвоните нам для подробностей.</p>
                <br />';
            } else
                echo 'Цена указана с учетом стоимости запчастей и всех работ.
                <span class="yellow-background">Все запчасти оригинальные.</span><br />';
        }
        ?>
        <hr />
        <span class="price-group"><?php echo $group; ?></span>
        </dt>
        <dd>
            <div class="hardware-repair">
                <?php if ($c > 1) echo '<noindex>'; ?>
                <ul class="hardware-repair__title">
                    <li class="hardware-repair__name">Наименование услуги</li>
                    <li class="hardware-repair__price">Цена</li>
                    <li class="hardware-repair__warranty">Гарантия</li>
                    <li class="hardware-repair__period">Срок</li>
                    <li class="hardware-repair__button">&nbsp;</li>
                </ul>

                <?php if ($c > 1) echo '</noindex>'; ?>
                <ul class="hardware-repair__info">
                    <?php
                    $counter = 0;
                    foreach ($services as $key => $value):
                        ?>
                        <li class="hardware-repair__info__item <?php echo $icons[$value['available']]; ?> <?php
                        if ($counter == 1) {
                            echo 'active';
                        } else {
                            $counter = 0;
                        } $counter++;
                        ?>" title="<?php //echo $titles[$value['available']];      ?>" >
                            <ul>
                                <li class="hardware-repair__name" data-action="<?php echo '/main/ajax/order?pageUrl=' . Yii::app()->request->hostInfo . '/' . Controller::$pageData['pageUrl'] . '&h1=' . $this->pageTitle . '&serviceTitle=' . CHtml::encode($value['serviceTitle']) . '&tip=' . Controller::$pageData['_parents']['category']['pageTitle'] . '&brend=' . $data['_parents']['brand']['pageTitle'] . '&model=' . $data['pageTitle'] . '&sena=' . CHtml::encode($value['price']); ?>">
                                    <span class="hardware-repair__name__link" id="click-<?php echo $value['serviceId']; ?>">
                                        <?php //if (!empty($value['serviceDescription'])) echo '<noindex>';          ?>										
                                        <span>
                                            <span class="strong"><?php echo $value['serviceTitle']; ?></span> 
                                            <?php
                                            echo
                                            //$data['_parents']['category']['pageId'] == 1 ? '' : 
                                            '<br>' . $data['_parents']['brand']['pageTitle'] . " " . $data['pageTitle'];
                                            ?>
                                        </span>
                                        <?php //if (!empty($value['serviceDescription'])) echo '</noindex>';          ?>										
                                    </span>    
                                </li>
                                <li class="hardware-repair__price" >
                                    <?php
                                    $regionId = Yii::app()->session['userRegion']['id'];
                                    $exids = array(31, 33, 34);
                                    if ($regionId != 1)
                                        $exids = array_merge($exids, array(32));
                                    $aEx = 67;
                                    $eprice = ($value['price'] / $aEx * $exchange);
                                    $eprice = (int) ($eprice / 100) * 100 + 90;
                                    $dprice = ($data['pageGroup'] == 'course' && in_array($value['serviceId'], $exids) ? $eprice : Controller::numberFormat($value['price']));
                                    if (filter_var($value['price'], FILTER_VALIDATE_INT)) {
                                        $aPrice = $percent * (int) $value['price'] / 100 + $value['price'];
                                        echo '<a href="/main/ajax/loadForm?formName=buying-services-st&modelName=buyServiceForm&service=' . urlencode($value['serviceTitle']) . '&price=' . urlencode($value['price']) . '&priceOld=' . urlencode((50 * (intval($aPrice / 50) + 1))) . '&bim=' . urlencode($data['_parents']['brand']['pageTitle'] . " " . $data['pageTitle']) . '" class="fancybox fancybox.ajax buyServiceForm"><span class="price-group">Акция!</span></a><br style=" margin-bottom: 5px;"> ';
                                        echo $dprice . '&nbsp;<span class="hyphen"></span><span class="ruble">p</span><br>';
                                        echo '<span class="chz">';
                                        echo Controller::numberFormat(50 * (intval($aPrice / 50) + 1)) . '&nbsp;<span class="hyphen"></span><span class="ruble">p</span>';
                                        echo '</span>';
                                    } elseif (empty($value['price'])) {
                                        echo 'Звоните';
                                    } else {
                                        echo $value['price'];
                                    }
                                    ?>                             
                                </li>
                                <li class="hardware-repair__warranty"><?php echo $value['serviceWarranty']; ?></li>
                                <li class="hardware-repair__period width-10"><?php echo $value['serviceTime']; ?></li>
                                <noindex>
                                    <li class="hardware-repair__button  width-20">
                                        <span class="global-button green-bg price-button">
                                            <a id="service-<?php echo $value['serviceId']; ?>" href="/main/ajax/loadForm?formName=buying-services&modelName=buyServiceForm" class="fancybox fancybox.ajax">Купить услугу</a>
                                        </span>
                                        <?php if (!in_array($data['_parents']['category']['pageId'], array(1, 2, 3))): ?>
                                            <br>
                                        <noindex><a class="fancybox fancybox.ajax" style="font: 14px 'proxima_nova_rgbold',sans-serif;" href="/main/ajax/loadForm?formName=repairer&modelName=RepairerForm" rel="nofollow">Вызвать мастера на дом</a></noindex>
                                    <?php endif; ?>
                                    </li>
                                </noindex>
                            </ul>
                            <script>
                                $('li.hardware-repair__button span.global-button.green-bg').on('click', 'a', function ()
                                {
                                    localStorage.setItem("mobi03.buy_action", $(this).parents('li.hardware-repair__info__item').find('li.hardware-repair__name').data("action"));
                                });
                                $('.buyServiceForm').on('click', function ()
                                {
                                    localStorage.setItem("mobi03.buy_action", $(this).parents('li.hardware-repair__info__item').find('li.hardware-repair__name').data("action"));
                                });
                            </script>
                            <div class="hardware-repair__description">
                                <?php
                                $replaces = array('[модель]', '[бренд]', '[название услуги]', '<strong>[</strong><strong>название услуги]');
                                $replacesTo = array(Controller::$pageData['pageTitle'], Controller::$pageData['_parents']['brand']['pageTitle'], $value['serviceTitle'], $value['serviceTitle']);
                                echo '<noindex>' . strip_tags(str_replace($replaces, $replacesTo, $value['serviceDescription']), '<p>') . '</noindex>';
                                ?>
                                <noindex>
                                    <div class="global-form">
                                        <h3>Оставьте онлайн заявку</h3>
                                        <?php
                                        $form = $this->beginWidget('CActiveForm', array(
                                            'id' => 'model-form-' . $value['serviceId'],
                                            'action' => '/main/ajax/order?pageUrl=' . Yii::app()->request->hostInfo . '/' . Controller::$pageData['pageUrl'] . '&h1=' . $this->pageTitle . '&serviceTitle=' . $value['serviceTitle'] . '&tip=' . Controller::$pageData['_parents']['category']['pageTitle'] . '&brend=' . $data['_parents']['brand']['pageTitle'] . '&model=' . $data['pageTitle'] . '&sena=' . $value['price'],
                                            'enableClientValidation' => false,
                                            'htmlOptions' => array('class' => 'buy__service__form'),
                                        ));
                                        ?>
                                        <div style="display: none">
                                            <?php echo $form->error($model, 'userName'); ?>
                                            <?php echo $form->error($model, 'userPhone'); ?>
                                        </div>
                                        <fieldset>
                                            <p>Закажите ремонт до 
                                                <strong><?php echo (int) date('d', time() + 3600 * 24), ' ', Yii::app()->locale->getMonthName(date('n', time() + 3600 * 24)); ?></strong> и получите скидку <strong><?php echo isset(Yii::app()->session['skidka']) && !empty(Yii::app()->session['skidka']) ? Yii::app()->session['skidka'] . '%' : '5%' ?></strong></p>
                                            <div class="wrap-bg">
                                                <div class="type-text">
                                                    <?php echo $form->textField($model, 'userName', array('placeholder' => 'Ваше имя', 'id' => 'buyServiceForm_userName_' . $value['serviceId'])); ?>
                                                </div>
                                            </div>    
                                        </fieldset>
                                        <fieldset>
                                            <div class="wrap-bg">
                                                <div class="type-text">
                                                    <?php echo $form->textField($model, 'userPhone', array('placeholder' => 'Ваш телефон', 'class' => 'masked-phone', 'id' => 'buyServiceForm_userPhone_' . $value['serviceId'])); ?>
                                                </div>
                                            </div>    
                                        </fieldset>
                                        <fieldset style="display: block;">
                                            <div class="wrap-bg">
                                                <div class="type-text">
                                                    <?php echo $form->textField($model, 'userEmail', array('placeholder' => 'Ваш E-mail', 'id' => 'buyServiceForm_userEmail_' . $value['serviceId'])); ?>
                                                </div>
                                            </div>    
                                        </fieldset>
                                        <fieldset style="display: none;">
                                            <div class="wrap-bg">
                                                <div class="select">
                                                    <?php echo $form->dropdownList($model, 'city', $regions); ?>												
                                                </div>
                                            </div>    
                                        </fieldset>
                                        <fieldset>
                                            <div class="choice-courier">
                                                <div class="checkbox <?php echo ($model->courier == 1 ? ' open ' : ''); ?>">
                                                    <?php echo $form->checkBox($model, 'courier', array('id' => 'free-courier-' . $value['serviceId'], 'value' => 1, 'uncheckValue' => 0)); ?>
                                                    <label for="free-courier-<?php echo $value['serviceId'] ?>">
                                                        <span class="checkbox__box">
                                                            <span class="checkbox__box__inner">&nbsp;</span>
                                                        </span>    
                                                        <span class="checkbox__text">Нужен бесплатный курьер</span>
                                                    </label>
                                                    <div class="wrap-bg">
                                                        <div class="type-text">
                                                            <?php echo $form->textField($model, 'userAddress', array('placeholder' => 'Введите ваш адрес', 'id' => 'buyServiceForm_userAddress_' . $value['serviceId'])); ?>
                                                        </div>
                                                    </div>  
                                                </div> 
                                            </div> 
                                        </fieldset>
                                        <fieldset>
                                            <p>Наш менеджер свяжется с вами в ближайшие минуты</p>
                                            <div class="type-submit">
                                                <?php echo CHtml::submitButton('Заказать'); ?>		
                                            </div> 
                                        </fieldset>
                                        <?php $this->endWidget(); ?>
                                    </div>  
                                </noindex>
                            </div>    
                        </li>
                        <script>
                            jQuery('#model-form-<?php echo $value['serviceId']; ?>').yiiactiveform(
                                    {
                                        'validateOnSubmit': true,
                                        'afterValidate': function (form, data, hasError)
                                        {
                                            if (!hasError)
                                            {
                                                var courier = "without courier";
                                                var checkbox = $("form#model-form-30 div.choice-courier>div.checkbox");

                                                if (checkbox.hasClass("open"))
                                                {
                                                    courier = "courier";
                                                }
                                                mobi03.sendGoogleStatic("Order-online-from-price-form", courier, window.location.href);

                                                $.ajax(
                                                        {
                                                            type: "POST",
                                                            url: form[0].action,
                                                            data: $(form).serialize(),
                                                            success: function (ret)
                                                            {
                                                                $(".fancybox-close").trigger("click");
                                                                var data = JSON.parse(ret);
                                                                mobi03.showMessage(data.message.title, data.message.desc);
                                                            }
                                                        });
                                            }
                                        },
                                        'attributes': [
                                            {
                                                'id': 'buyServiceForm_userName_<?php echo $value['serviceId']; ?>',
                                                'inputID': 'buyServiceForm_userName_<?php echo $value['serviceId']; ?>',
                                                'errorID': 'buyServiceForm_userName_em__<?php echo $value['serviceId']; ?>',
                                                'model': 'buyServiceForm',
                                                'name': 'userName',
                                                'enableAjaxValidation': false,
                                                'clientValidation': function (value, messages, attribute)
                                                {
                                                    if (jQuery.trim(value) == '')
                                                    {
                                                        messages.push("\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043f\u043e\u043b\u0435 \u00abUser Name\u00bb.");
                                                    }

                                                }
                                            },
                                            {
                                                'id': 'buyServiceForm_userPhone_<?php echo $value['serviceId']; ?>',
                                                'inputID': 'buyServiceForm_userPhone_<?php echo $value['serviceId']; ?>',
                                                'errorID': 'buyServiceForm_userPhone_em_<?php echo $value['serviceId']; ?>',
                                                'model': 'buyServiceForm',
                                                'name': 'userPhone',
                                                'enableAjaxValidation': false,
                                                'clientValidation': function (value, messages, attribute)
                                                {
                                                    if (jQuery.trim(value) == '')
                                                    {
                                                        messages.push("\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043f\u043e\u043b\u0435 \u00abUser Phone\u00bb.");
                                                    }
                                                }
                                            },
                                            {
                                                'id': 'buyServiceForm_userAddress_<?php echo $value['serviceId']; ?>',
                                                'inputID': 'buyServiceForm_userAddress_<?php echo $value['serviceId']; ?>',
                                                'errorID': 'buyServiceForm_userAddress_em_<?php echo $value['serviceId']; ?>',
                                                'model': 'buyServiceForm',
                                                'name': 'userPhone',
                                                'enableAjaxValidation': false,
                                                'clientValidation': function (value, messages, attribute)
                                                {
                                                    if (jQuery.trim(value) == '' && $("form#model-form-<?php echo $value['serviceId']; ?> div.choice-courier>div.checkbox").hasClass("open"))
                                                    {
                                                        messages.push("\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043f\u043e\u043b\u0435 \u00abUser Address\u00bb.");
                                                    }
                                                }
                                            }
                                        ],
                                        'errorCss': 'error'
                                    });
                        </script>
                    <?php endforeach; ?>
                </ul>
                <br><br>
                <?php if ($c == 1): ?>
                    <nav class="page-navi" id="see-more-navi" style="text-align: center; margin: 0 0 12px; background: none;">
                        <div class="type-submit">
                            <input type="submit" id="see-more-services" value="Показать все услуги">			
                        </div>
                    </nav>
                <?php endif; ?>
                <br><br>
                <?php $this->widget('application.modules.main.widgets.cityPhonesInModelPage'); ?>
                <?php
                if ($c == 1) {
                    echo '<br><br>';
                    $this->widget('application.modules.main.widgets.PhotoGallery', array('float' => 'bottom'));
                }
                ?>
            </div>   
        </dd>
    </dl>  

<?php endforeach; ?>
<dl class="widget">
    <dt class="no-strong">
    <?php
    if (Controller::$pageData['_parents']['category']['pageId'] != 1) {
        echo 'Цена указана без учета стоимости запчастей. Звоните для подробностей.<br />';
    }
    ?>
    </dt>
</dl>

<?php $this->widget('application.modules.main.widgets.getRandomModels'); ?>
<?php $this->widget('application.modules.main.widgets.layoutBlocks', array('block' => 'under_price')); ?>

<?php
$this->widget('application.modules.main.widgets.Faqs', array('modelId' => $data['pageId']));
?>
<style>
    .chz {
        text-decoration: line-through;
        -moz-text-decoration-color: red;
        text-decoration-color: red;
        text-align: justify;
    }
    .buyServiceForm {
        text-decoration: none;
        border-bottom: 1px dashed;

    }
    ul.social-networks {
        width: 550px;
    }
    ul.social-networks li {
        padding-right: 10px;
        float: left;
        list-style: none;

    }
    .like-text {
        -moz-text-size-adjust: none;
        color: #636363;
        font: 500 14px 'Exo 2',sans-serif !important;
        padding-top: 10px;
    }

    .like-text strong {        
        font: 700 14px 'Exo 2',sans-serif !important;        
    }
    /*    .fb_iframe_widget {
            width: 102px !important; 
        }
        #vk_like {
            width: 131px !important; 
        }*/
    #twitter-widget-0 {
        width: 80px !important; 
    }
    .cursor-pointer {
        cursor: pointer;
    }

    .search {
        border: medium dashed #b1d7ea !important;
        border-radius: 7px !important;
    }

</style>
<script src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/js/jquery.cookie.js"></script>
<script>
                            $('#see-more-services').on('click', function () {
                                $('#hidden-services').show();  
                                $("html, body").animate({
					scrollTop: $("#hidden-services").offset().top - 30
				}, 1000);
                                $('#see-more-navi').hide();
                            });
                            $(document).ready(function () {

                                if (document.location.hash != "") {
                                    var hash = document.location.hash;
                                    hash = hash.split('#');
                                    hash = hash[1];
                                    $("#click-" + hash).trigger("click");
                                    $("#service-" + hash).parents("li.hardware-repair__info__item").addClass("search");
                                    $("#service-" + hash).parents("li.hardware-repair__info__item").addClass("open");
                                    $("html, body").animate({
                                        scrollTop: $("#click-" + hash).offset().top - 40
                                    }, 1000);
                                }
                                $('iframe#vkwidget1_tt').remove();
                            });
</script>

<style>
    .ui-autocomplete {
        max-height: 200px;
        overflow-y: auto;
        /* prevent horizontal scrollbar */
        overflow-x: hidden;
        /* add padding to account for vertical scrollbar */
        padding-right: 20px;
    }
    /* IE 6 doesn't support max-height
     * we use height instead, but this forces the menu to always be this tall
     */
    * html .ui-autocomplete {
        height: 100px;
    }
    .icon-info {
        font-size: 18px;
    }
    .differ {
        color: rgb(217, 72, 137);
        font-size: 22px;

    }

    #hidden-services {
        display: none;
    }

</style>
